package be.jabapage.snooker.service.administration.api;

/**
 * 
 * A collection of methods for the administration of the players.
 * @author axesq
 *
 */
public interface IFormatParser {

	/**
	 * 
	 * Given a certain player number and return the corresponding team number
	 * @param playerNumber
	 * @return
	 */
	String parseClubCode(String playerNumber);

	/**
	 * 
	 * Given a certain player number and return the corresponding player code 
	 * @param playerNumber
	 * @return
	 */
	String parsePlayerCode(String playerNumber);

	/**
	 * 
	 * Given a certain player number and return the corresponding team number
	 * @param playerNumber
	 * @return
	 */
	String parseTeamNumber(String playerNumber);
	/**
	 * Given a certain playernumber and returns the fact if this player is a backup player or not.
	 * @param playerNumber
	 * @return
	 */
	boolean isBackupPlayer(String playerNumber);

	String parseFirstName(String name);

	String parseLastName(String name);


}
